package com.pz.cloud.framework.business.leagueMem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pz.cloud.framework.base.annotation.Select;
import com.pz.cloud.framework.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 团费缴纳
 * @Author: jeecg-boot
 * @Date:   2020-12-05
 * @Version: V1.0
 */
@Data
@TableName("league_mem_fee")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="league_mem_fee对象", description="团费缴纳")
public class LeagueMemFee extends BaseEntity {
	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

	/**团员编号*/
	@Excel(name = "团员id", width = 15)
    @ApiModelProperty(value = "团员id")
    private String memId;

    /**缴纳状态*/
    @Excel(name = "缴纳状态", width = 15, dicCode = "league_mem_fee_pay_status")
    @ApiModelProperty(value = "缴纳状态")
    @Dict(dicCode = "league_mem_fee_pay_status")
    private String payStatus;

    /**金额*/
    @Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private BigDecimal payAmount;

    /**缴纳时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "缴纳时间")
    @Excel(name = "缴纳时间", width = 15, format = "yyyy-MM-dd")
    private Date payTime;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Excel(name = "缴费周期开始", width = 15, format = "yyyy-MM-dd")
    @ApiModelProperty("缴费周期开始")
    @Select(expression = "start_time >=:startTime")
    private Date startTime;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Excel(name = "缴费周期结束", width = 15, format = "yyyy-MM-dd")
    @ApiModelProperty("缴费周期结束")
    @Select(expression = "end_time <=:endTime")
    private Date endTime;

      /**学号*/
    @Excel(name = "学号", width = 15)
    @ApiModelProperty(value = "学号")
    @TableField(exist = false)
    private String stdNo;

    /**姓名*/
    @Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    @TableField(exist = false)
    private String realname;

    /**学院*/
    @Excel(name = "学院", width = 15)
    @ApiModelProperty(value = "学院")
    @TableField(exist = false)
    private String college;

    /**专业*/
    @Excel(name = "专业", width = 15)
    @ApiModelProperty(value = "专业")
    @TableField(exist = false)
    private String major;

    /**年级*/
    @Excel(name = "年级", width = 15)
    @ApiModelProperty(value = "年级")
    @TableField(exist = false)
    private String grade;

    /**班级*/
    @Excel(name = "班级", width = 15)
    @ApiModelProperty(value = "班级")
    @TableField(exist = false)
    private String clazz;
}
